emacs.git
10 years agolisp/calendar/appt.el (appt-delete-window): Check if buffer is live
Oleh Krehel [Mon, 22 Feb 2016 13:43:23 +0000 (14:43 +0100)]
lisp/calendar/appt.el (appt-delete-window): Check if buffer is live

* lisp/calendar/appt.el (appt-delete-window): Avoid trying to delete a
  non-existing buffer.

10 years agoMention the further asynchronousity
Lars Ingebrigtsen [Mon, 22 Feb 2016 05:18:32 +0000 (16:18 +1100)]
Mention the further asynchronousity

10 years agoFix async TLS boot problem
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:29:15 +0000 (15:29 +1100)]
Fix async TLS boot problem

* src/process.c (wait_reading_process_output): Verify the boot
of the correct process.

10 years agoClean up forgotten text in manual
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:20:14 +0000 (15:20 +1100)]
Clean up forgotten text in manual

* doc/lispref/display.texi (Defining Images): Remove example
forgotten when making previous change.

10 years agoClean up debugging code
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:18:41 +0000 (15:18 +1100)]
Clean up debugging code

* src/process.c (Fmake_network_process): Remove debugging printf.
(wait_for_socket_fds, wait_while_connecting)
(wait_for_tls_negotiation): Remove newlines from messages.

10 years agoFix merge conflicts in network-stream-tests.el
Lars Ingebrigtsen [Mon, 22 Feb 2016 04:06:33 +0000 (15:06 +1100)]
Fix merge conflicts in network-stream-tests.el

10 years agoPort recent filevercmp addition to MS-Windows
Paul Eggert [Mon, 22 Feb 2016 03:59:44 +0000 (19:59 -0800)]
Port recent filevercmp addition to MS-Windows

Reported by Andy Moreton in:
http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg01302.html
* nt/gnulib.mk (libgnu_a_SOURCES): Add filevercmp.c.
(EXTRA_DIST): Add filevercmp.h.

10 years agoadd_to_log expects Lisp parameters
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:34:54 +0000 (13:34 +1100)]
add_to_log expects Lisp parameters

10 years agoMention sentinels in conjunction with :nowait t.
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:20:04 +0000 (13:20 +1100)]
Mention sentinels in conjunction with :nowait t.

* doc/lispref/processes.texi (Network Processes): Mention the
recommended way of using sentinels with :nowait t.

10 years agoMention in the doc strings that process functions may block
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:14:35 +0000 (13:14 +1100)]
Mention in the doc strings that process functions may block

(Fprocess_contact, Fprocess_datagram_address)
(Fset_process_datagram_address, Fset_network_process_option)
(Fprocess_send_region, Fprocess_send_string): Mention that the
functions may block.
(Fset_process_coding_system): Ditto.

10 years agoAdd blocker warnings to the *Messages* buffer
Lars Ingebrigtsen [Mon, 22 Feb 2016 02:07:27 +0000 (13:07 +1100)]
Add blocker warnings to the *Messages* buffer

* src/process.c (wait_for_socket_fds): Add warning to the log.
(wait_while_connecting): Ditto.
(wait_for_tls_negotiation): Ditto.

10 years agoRework the image property getter/setters
Lars Ingebrigtsen [Mon, 22 Feb 2016 01:50:40 +0000 (12:50 +1100)]
Rework the image property getter/setters

* doc/lispref/display.texi (Defining Images): Document the
renamed `image-get/set-property' functions.

* lisp/image.el (image--set-property): Rename from
image-set-property.
(image-property): Declare a setf form.
(image-property): Rename from `image-get-property'.

10 years agoUse Gnulib filevercmp for version comparison
Paul Eggert [Sun, 21 Feb 2016 21:25:24 +0000 (13:25 -0800)]
Use Gnulib filevercmp for version comparison

* admin/merge-gnulib (GNULIB_MODULES): Add filevercmp.
* doc/lispref/strings.texi (Text Comparison):
* etc/NEWS, src/fns.c:
* test/src/fns-tests.el (fns-tests-string-version-lessp):
Rename newly-introduced function to string-version-lessp, by
analogy with strverscmp.
* lib/filevercmp.c, lib/filevercmp.h: New files, copied from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/fns.c: Include <filevercmp.h>.
(gather_number_from_string): Remove.
(Fstring_version_lessp): Reimplement via filevercmp.

10 years agoAdd a function to delete URL cookies
Lars Ingebrigtsen [Sun, 21 Feb 2016 05:57:04 +0000 (16:57 +1100)]
Add a function to delete URL cookies

* doc/misc/url.texi (Cookies): Document
url-cookie-delete-cookies.

* lisp/url/url-cookie.el (url-cookie-delete-cookies): New function.

10 years agoAvoid integer overflows in string-numeric-lessp
Lars Ingebrigtsen [Sun, 21 Feb 2016 05:28:37 +0000 (16:28 +1100)]
Avoid integer overflows in string-numeric-lessp

* src/fns.c (Fstring_numeric_lessp): If we have an integer
overflow, compare lexicographically.

10 years agoAdd the string-numeric-lessp function
Lars Ingebrigtsen [Sun, 21 Feb 2016 04:32:45 +0000 (15:32 +1100)]
Add the string-numeric-lessp function

* doc/lispref/strings.texi (Text Comparison): Document
`string-numerical-lessp'.

* src/fns.c (Fstring_numeric_lessp): New function.
(gather_number_from_string): Helper function for that function.

* test/src/fns-tests.el (fns-tests-string-numeric-lessp): Add tests.

10 years agoClarify levels of :nowait t.
Lars Ingebrigtsen [Sun, 21 Feb 2016 03:08:17 +0000 (14:08 +1100)]
Clarify levels of :nowait t.

* doc/lispref/processes.texi (Network Processes): Mention
levels of asynchronicity.

10 years agoRespect DNS timeouts
Alain Schneble [Sun, 21 Feb 2016 02:36:25 +0000 (13:36 +1100)]
Respect DNS timeouts

* src/process.c (check_for_dns): If the async DNS request
failed and the associated process is still in "connect" state,
deactivate the process and set status to "failed".

10 years agoAdd a frame around the placeholder image in shr
Lars Ingebrigtsen [Sat, 20 Feb 2016 07:48:40 +0000 (18:48 +1100)]
Add a frame around the placeholder image in shr

* lisp/net/shr.el (shr-make-placeholder-image): Add a frame
around the image.

10 years agoUse placeholder images in shr to avoid text moving around
Lars Ingebrigtsen [Sat, 20 Feb 2016 07:01:52 +0000 (18:01 +1100)]
Use placeholder images in shr to avoid text moving around

* lisp/net/shr.el (shr-rescale-image): Pass in width/height
from the HTML.
(shr-tag-img): Ditto.
(shr-string-number): New function.
(shr-make-placeholder-image): Make placeholder images.
(shr-tag-img): Insert them if we have SVG support.

10 years agoGet explicit width/height + scale computations right
Lars Ingebrigtsen [Sat, 20 Feb 2016 06:55:43 +0000 (17:55 +1100)]
Get explicit width/height + scale computations right

* src/image.c (compute_image_size): :scale should also be
taken into account when :width and :height are explicitly names.

10 years agoNew functions for getting and setting image properties
Lars Ingebrigtsen [Sat, 20 Feb 2016 06:54:05 +0000 (17:54 +1100)]
New functions for getting and setting image properties

* doc/lispref/display.texi (Defining Images): Document
image-get/set-property.

* lisp/image.el (image-set-property): New function.
(image-get-property): Ditto.

10 years agoAwait the final mouse event in C-h c and C-h k.
Alan Mackenzie [Fri, 19 Feb 2016 17:10:57 +0000 (17:10 +0000)]
Await the final mouse event in C-h c and C-h k.

* lisp/help.el (describe-key-briefly, describe-key): On receiving a mouse
event, keep reading further events until a timeout occurs, to ensure we have
the complete mouse event from the user.

10 years agoAdd a library for creating and manipulating SVG images
Lars Ingebrigtsen [Fri, 19 Feb 2016 05:04:11 +0000 (16:04 +1100)]
Add a library for creating and manipulating SVG images

* doc/lispref/display.texi (SVG Images): New section.

* lisp/svg.el: New file.

10 years agoFix up tests for async TLS negotiation
Lars Ingebrigtsen [Fri, 19 Feb 2016 01:37:34 +0000 (12:37 +1100)]
Fix up tests for async TLS negotiation

10 years agoFix coding system setup
Lars Ingebrigtsen [Fri, 19 Feb 2016 00:58:50 +0000 (11:58 +1100)]
Fix coding system setup

* src/process.c (set_network_socket_coding_system): Pass in
the host/service that's been computed already.

10 years agoReference `tramp-theme' in GNU ELPA.
Michael Albinus [Thu, 18 Feb 2016 12:58:12 +0000 (13:58 +0100)]
Reference `tramp-theme' in GNU ELPA.

* doc/misc/tramp.texi (Frequently Asked Questions):
Reference `tramp-theme' in GNU ELPA.

10 years agoVerify the TLS connection asynchronously
Lars Ingebrigtsen [Thu, 18 Feb 2016 05:25:37 +0000 (16:25 +1100)]
Verify the TLS connection asynchronously

* src/gnutls.c (gnutls_verify_boot): Refactor out into its own
function so that we can call it asynchronously.
(Fgnutls_boot): Use it.

* src/process.c (wait_reading_process_output): Verify the TLS
negotiation.

10 years agoAdd column layout module to CSS property list
Simen Heggestøyl [Tue, 16 Feb 2016 20:52:59 +0000 (21:52 +0100)]
Add column layout module to CSS property list

* lisp/textmodes/css-mode.el (css-property-ids): Add properties from
CSS Multi-column Layout Module.

10 years agoMinor cleanup in CONTRIBUTE and test/README
Michael Albinus [Tue, 16 Feb 2016 10:23:58 +0000 (11:23 +0100)]
Minor cleanup in CONTRIBUTE and test/README

* CONTRIBUTE: Remove detailed explanation about testing; this
is now in test/README.

* test/README: Don't mention automated/ subdirectory.

10 years agoProvide 'term/name in lisp/term files.
Glenn Morris [Tue, 16 Feb 2016 05:59:40 +0000 (21:59 -0800)]
Provide 'term/name in lisp/term files.

* lisp/term/AT386.el, lisp/term/bobcat.el, lisp/term/cygwin.el:
* lisp/term/internal.el, lisp/term/iris-ansi.el, lisp/term/linux.el:
* lisp/term/lk201.el, lisp/term/news.el, lisp/term/ns-win.el:
* lisp/term/pc-win.el, lisp/term/rxvt.el, lisp/term/screen.el:
* lisp/term/sun.el, lisp/term/tty-colors.el, lisp/term/tvi970.el:
* lisp/term/vt100.el, lisp/term/vt200.el, lisp/term/w32-win.el:
* lisp/term/w32console.el, lisp/term/wyse50.el, lisp/term/x-win.el:
For consistency, provide 'term/name in all files that don't already.

10 years agoDeactivate the correct process
Lars Ingebrigtsen [Tue, 16 Feb 2016 05:47:55 +0000 (16:47 +1100)]
Deactivate the correct process

* src/process.c (wait_reading_process_output): Deactivate the
correct process on failure.

10 years agoImplement asynch TLS negotiation
Lars Ingebrigtsen [Tue, 16 Feb 2016 04:56:56 +0000 (15:56 +1100)]
Implement asynch TLS negotiation

* src/gnutls.c (gnutls_try_handshake): Factor out into its own
function.
(emacs_gnutls_handshake): Use it.
(emacs_gnutls_read): Just return instead of retrying the handshake.

* src/process.c (finish_after_tls_connection): Factor out
into its own function.
(connect_network_socket): Use it.
(wait_reading_process_output): Retry TLS handshakes.
(wait_reading_process_output): Defer sentinel until TLS completes.

10 years agoSimplify the DNS resolution loop a bit
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:58:26 +0000 (13:58 +1100)]
Simplify the DNS resolution loop a bit

* src/process.c (wait_reading_process_output): Simplify the
DNS resolution loop a bit.

10 years agoLoop over the process list instead of maintaining a separate list
Alain Schneble [Tue, 16 Feb 2016 02:50:23 +0000 (13:50 +1100)]
Loop over the process list instead of maintaining a separate list

* src/process.c: Remove declaration/definition of dns_processes list.
* src/process.c (wait_reading_process_output): Loop over all processes in
Vprocess_alist instead of dns_processes, to check for completed DNS
requests.

10 years agoAllow setting the filter masks later
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:37:33 +0000 (13:37 +1100)]
Allow setting the filter masks later

* src/process.c (Fset_process_filter): Don't set the socket
masks here, because we may not have a socket yet.
(set_process_filter_masks): New function.
(connect_network_socket): Set the filter masks here.

10 years agoRemove debugging
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:24:47 +0000 (13:24 +1100)]
Remove debugging

10 years agoEnsure we always free DNS resources when deleting a process
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:23:15 +0000 (13:23 +1100)]
Ensure we always free DNS resources when deleting a process

* src/process.c (free_dns_request): Factor out into own function.
(Fdelete_process): When deleting a process, free any DNS
structures associated with it.
(check_for_dns): Always free all DNS resources.

10 years agoDon't block in set-process-window-size
Alain Schneble [Tue, 16 Feb 2016 02:13:06 +0000 (13:13 +1100)]
Don't block in set-process-window-size

* src/process.c (set-process-window-size): Explicitly return Qnil when
called with network processes as set_window_size won't work anyway on
socket fds.  As a welcome side effect, this makes the blocking
wait_for_socket_fds call obsolete.

10 years agoDo most of the coding system setup earlier
Lars Ingebrigtsen [Tue, 16 Feb 2016 02:01:05 +0000 (13:01 +1100)]
Do most of the coding system setup earlier

* src/process.c (Fmake_network_process): Set the read/write
coding systems here, so that special bindings work.
(Fmake_network_process): Complete the coding system setup here.

10 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:11:03 +0000 (14:11 -0800)]
Merge from origin/emacs-25

d4b93e1 Minor fixes in global-auto-composition-mode
02b037b Allow arithmetic operators inside C++ template constructs.
44b16f6 Avoid crashes in semi-malformed 'condition-case'
652e5b4 Allow arithmetic operators inside C++ template constructs.
d9ea795 Fix regression with 'recent-keys' and keyboard macros
903603f Fix wording in a doc-view.el comment
cf79616 ; Spelling fixes
f8bf1b3 CONTRIBUTE cleanups and updates
f3aaca3 Port USE_STACK_LISP_OBJECTS fix to Clang
1834ac7 Port to x86 GCC 4.3.1 and earlier
8482949 Fix point movement under 'scroll-conservatively'
c1313b5 Replace colon in file name (not legal on Windows)
f7af26c Fix a typo in edt.texi
8badf95 Make 'mmap_realloc' on MS-Windows more reliable
856cd94 Grep alias `all' shall not match parent directory

10 years ago; Merge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:10:37 +0000 (14:10 -0800)]
; Merge from origin/emacs-25

The following commits were skipped:

cc6d906 ; Auto-commit of ChangeLog files.
1af4493 ; Auto-commit of loaddefs files.
23ca48d Bump version to 25.0.91

10 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:10:25 +0000 (14:10 -0800)]
Merge from origin/emacs-25

dacde7e * etc/AUTHORS: Update the AUTHORS file
478ca5d ; fix changelog entries
2b7d006 ; make change-history-commit
851decb * lisp/dired-aux.el: Require cl-lib.  (Bug#22613)
47896c8 ; Improve commentary in insdel.c
53ca1e1 Index tilde characters in names of backup files
d97f522 Document deprecation of hi-lock-mode's 'C-x w' bindings
b55f06d ; * etc/NEWS: Use double spaces to end a sentence.
28bb214 Announce that the `C-x w' bindings are deprecated
1c98f98 Suppress GNUstep hardening
d82f24b Fix redisplay after a large insertion
85a2753 Revert "Fix gnus-group-get-new-news-this-group on group with
        closed server"
e8e3db0 ; Improve merge documentation in CONTRIBUTE
5be9989 * lib-src/make-docfile.c: Include stdarg.h.
c95ebbf Extend gpm-mouse-mode's doc string and doc to point out
        limitations.

10 years ago; Merge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:09:19 +0000 (14:09 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

a91b4b5 Revert "Backport: * lisp/isearch.el: Turn char-folding off by default"

10 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:09:12 +0000 (14:09 -0800)]
Merge from origin/emacs-25

f5d6b9b Revert "Support integer image rotation and respect EXIF rotations"
afe7d1f Revert "Document EXIF image rotation"
c6f377c Document OS X LANG default
eb4a18c Set locale when run from OS X GUI
456c0a3 make-docfile cleanup for I/O, etc.
25ec995 Memory-management cleanup in make-docfile
02d925e Kevin Gallagher has new email address
4ef153b Improve doc strings of 'forward/backward-word-strictly'
3ad05a0 Describe Makefile test targets in test/README

10 years ago; Merge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:08:03 +0000 (14:08 -0800)]
; Merge from origin/emacs-25

The following commit was skipped:

12c50e8 Backport: * lisp/isearch.el: Turn char-folding off by default

10 years agoMerge from origin/emacs-25
John Wiegley [Mon, 15 Feb 2016 22:07:46 +0000 (14:07 -0800)]
Merge from origin/emacs-25

10b8ed2 Document EXIF image rotation
0f60049 Support integer image rotation and respect EXIF rotations
7dd45b6 Quote table names for postgres listings (sql-mode)
6bac035 * lisp/replace.el (replace-match-maybe-edit): Make arg
        `backward' optional.
ee909aa * lisp/simple.el (next-line-or-history-element): Reset
        temporary-goal-column.
0a289d3 Suppress ACL ops if configured with --disable-acl
1a9dbf5 Mention web bugs
fa55da2 Make mm-html-blocked-images default to "" again

10 years agoMinor fixes in global-auto-composition-mode
Eli Zaretskii [Mon, 15 Feb 2016 19:46:17 +0000 (21:46 +0200)]
Minor fixes in global-auto-composition-mode

* lisp/emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name):
Produce prettier names of globalized minor modes.
* lisp/composite.el (global-auto-composition-mode): Make it a
globalized mode.  (Bug#22682)

10 years agoAllow arithmetic operators inside C++ template constructs.
Alan Mackenzie [Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)]
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.  This corrects the previous patch with this message
which was empty.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.

10 years agoAvoid crashes in semi-malformed 'condition-case'
Eli Zaretskii [Mon, 15 Feb 2016 14:03:54 +0000 (16:03 +0200)]
Avoid crashes in semi-malformed 'condition-case'

* src/eval.c (internal_lisp_condition_case): Treat a handler
'(nil)' as if it were '(nil nil)'.  (Bug#22675)

10 years agoAllow arithmetic operators inside C++ template constructs.
Alan Mackenzie [Mon, 15 Feb 2016 12:45:42 +0000 (12:45 +0000)]
Allow arithmetic operators inside C++ template constructs.

Fixes debbugs #22486.

* lisp/progmodes/cc-langs.el (c-multichar->-op-not->>-regexp): New language
variable.
(c-<>-notable-chars-re): New language variable.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): User
c-<>-notable-chars-re in place of the former fixed string in searching for
places to stop and examine.
Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
multichar operator in place of the former c->-op-without->-cont-regexp.
Add code to skip forwards over a balanced parenthesized expression.

10 years agoFix regression with 'recent-keys' and keyboard macros
Eli Zaretskii [Mon, 15 Feb 2016 12:03:57 +0000 (14:03 +0200)]
Fix regression with 'recent-keys' and keyboard macros

* src/keyboard.c (record_char): Don't record in 'recent_keys'
events that come from executing keyboard macros.  (Bug#22674)

10 years agoFix wording in a doc-view.el comment
Eli Zaretskii [Mon, 15 Feb 2016 11:09:46 +0000 (13:09 +0200)]
Fix wording in a doc-view.el comment

* lisp/doc-view.el (doc-view--current-cache-dir): Don't use
"illegal" for something that is not against the law.

10 years agoProtect against initial handshake failures
Lars Ingebrigtsen [Mon, 15 Feb 2016 09:10:10 +0000 (20:10 +1100)]
Protect against initial handshake failures

* src/process.c (connect_network_socket): Mark the connection
as failed if the handshake didn't succeed yet.  This should be
reworked later.

10 years agoCall the network security manager after doing TLS negotiation
Lars Ingebrigtsen [Mon, 15 Feb 2016 07:24:08 +0000 (18:24 +1100)]
Call the network security manager after doing TLS negotiation

* lisp/net/network-stream.el (network-stream-open-tls):
Postpone NSM verification when running async.

* src/process.c (Fset_process_filter): This function doesn't
need to wait.
(connect_network_socket): Set the process status to "run" only
after TLS negotiation.
(wait_for_socket_fds): Take a name parameter for more debugging.
(wait_reading_process_output): Don't change status to "run"
unless TLS negotiation has finished.
(send_process): Wait for the process here instead of
send_process_string.
(connect_network_socket): Call the network security manager.

10 years agoRemove some #ifdefs and update documentation
Lars Ingebrigtsen [Mon, 15 Feb 2016 05:05:14 +0000 (16:05 +1100)]
Remove some #ifdefs and update documentation

* doc/lispref/processes.texi (Network Processes): Remove
mention of `dns'.

* lisp/net/network-stream.el (open-network-stream): Remove
mention of `dns'.

* src/process.c (Fset_process_filter)
(Fset_process_window_size, Fprocess_contact)
(Fprocess_datagram_address, Fset_process_datagram_address)
(Fset_network_process_option, Fprocess_send_region)
(Fprocess_send_string, Fset_process_coding_system)
(Fset_process_filter_multibyte): Remove the #ifdef
HAVE_GETADDRINFO_A checks.
(Fprocess_send_string): Wait for TLS negotiation.
(wait_for_tls_negotiation): New function.
(send_process): Remove the TLS boot check.

* src/process.c (Fmake_network_process): Ditto.

10 years agoUse :nowait t in url-gw
Lars Ingebrigtsen [Mon, 15 Feb 2016 04:59:49 +0000 (15:59 +1100)]
Use :nowait t in url-gw

* lisp/url/url-gw.el (url-open-stream): Just use :nowait t,
since we're not differentiating.

10 years agoAdd blockers to process functions
Alain Schneble [Mon, 15 Feb 2016 04:44:29 +0000 (15:44 +1100)]
Add blockers to process functions

* src/process.c (set-process-filter, set-process-window-size,
process-contact, process-datagram-address, set-process-datagram-address,
set-network-process-option): Make functions wait (block) on network
process until pending DNS requests have been processed and associated
socket initialized.

* src/process.c (process-send-region, process-send-string,
process-send-eof): Make functions wait (block) while network process is
in connect state.

10 years ago; Spelling fixes
Paul Eggert [Mon, 15 Feb 2016 03:44:38 +0000 (19:44 -0800)]
; Spelling fixes

10 years agoCONTRIBUTE cleanups and updates
Paul Eggert [Mon, 15 Feb 2016 03:24:38 +0000 (19:24 -0800)]
CONTRIBUTE cleanups and updates

* CONTRIBUTE: Mention URLs and info nodes more consistently,
avoiding possibly-confusing punctuation adjacent to a URL, and
giving full shell commands for 'info'.  Start with a brief but
complete how-to, for people who want to get started right away.
Then briefly discuss how to join the development process in the
typical order.  Omit needless words.  Update some of the
now-obsolete file names, info node names, and quoting styles.
Better document emacs-NN branches and how they are merged.
* admin/notes/git-workflow: Change emacs-24 to emacs-25,
and trunk to master.  This file still needs work.

10 years agoPort USE_STACK_LISP_OBJECTS fix to Clang
Paul Eggert [Sun, 14 Feb 2016 19:42:36 +0000 (11:42 -0800)]
Port USE_STACK_LISP_OBJECTS fix to Clang

* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false for Clang.
Recent versions of Clang claim to be GCC 4.2.1 but do not have
the GCC bug.

10 years agoAdd fragmentation module to CSS property list
Simen Heggestøyl [Sun, 14 Feb 2016 19:31:46 +0000 (20:31 +0100)]
Add fragmentation module to CSS property list

* lisp/textmodes/css-mode.el (css-property-ids): Add properties from
CSS Fragmentation Module Level 3.

10 years agoPort to x86 GCC 4.3.1 and earlier
Paul Eggert [Sun, 14 Feb 2016 19:19:39 +0000 (11:19 -0800)]
Port to x86 GCC 4.3.1 and earlier

This tries to port to x86 FreeBSD 9, where Emacs dumps core (Bug#22065).
* src/lisp.h (USE_STACK_LISP_OBJECTS): Default to false
for GCC 4.3.1 and earlier.

10 years agoFix point movement under 'scroll-conservatively'
Eli Zaretskii [Sun, 14 Feb 2016 19:20:48 +0000 (21:20 +0200)]
Fix point movement under 'scroll-conservatively'

* src/xdisp.c (redisplay_window): Correct a typo in computing the
effective number of text lines in a window.  (Bug#22637)

10 years agoReplace colon in file name (not legal on Windows)
Thomas Plass [Sun, 14 Feb 2016 18:56:46 +0000 (19:56 +0100)]
Replace colon in file name (not legal on Windows)

* lisp/doc-view.el (doc-view--current-cache-dir): Replace colon in file
name (not legal on Windows). [tiny change]

10 years agoFix a typo in edt.texi
Eli Zaretskii [Sun, 14 Feb 2016 18:14:32 +0000 (20:14 +0200)]
Fix a typo in edt.texi

* doc/misc/edt.texi: Fix a typo in an email address.  Reported by
"Herbert J. Skuhra" <herbert@mailbox.org>.

10 years agoMake 'mmap_realloc' on MS-Windows more reliable
Eli Zaretskii [Sun, 14 Feb 2016 17:46:29 +0000 (19:46 +0200)]
Make 'mmap_realloc' on MS-Windows more reliable

* src/w32heap.c (mmap_alloc): If reserving memory succeeds, but
committing fails, return NULL.  Don't call GetLastError twice for
the same API error.
(mmap_realloc): Zero out MEMORY_BASIC_INFORMATION structures
before calling VirtualQuery, to avoid using garbled values if the
call fails.  If committing more pages from the same block fails,
fall back on mmap_alloc + CopyMemory.  Enhance debugging printouts
if the call to VirtualAlloc to commit more pages fails.
(Bug#22526)

10 years agoGrep alias `all' shall not match parent directory
Oscar Fuentes [Sun, 14 Feb 2016 15:14:33 +0000 (16:14 +0100)]
Grep alias `all' shall not match parent directory

* lisp/progmodes/grep.el (grep-files-aliases): Don't match parent
  directory for `all'. Fixes bug#22577

10 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 14 Feb 2016 12:26:10 +0000 (07:26 -0500)]
; Auto-commit of ChangeLog files.

10 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 14 Feb 2016 12:25:34 +0000 (07:25 -0500)]
; Auto-commit of loaddefs files.

10 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 14 Feb 2016 11:24:15 +0000 (06:24 -0500)]
; Auto-commit of ChangeLog files.

10 years ago* doc/lispref/sequences.texi: Add documentation for seq-map-indexed
Nicolas Petton [Sun, 14 Feb 2016 09:28:26 +0000 (10:28 +0100)]
* doc/lispref/sequences.texi: Add documentation for seq-map-indexed

10 years agoNew function seq-map-indexed
Nicolas Petton [Sun, 14 Feb 2016 09:25:10 +0000 (10:25 +0100)]
New function seq-map-indexed

* lisp/emacs-lisp/seq.el (seq-map-indexed): New function.
* test/lisp/emacs-lisp/seq-tests.el: Add tests for seq-map-indexed.

10 years ago* lisp/gnus/mm-util.el: Remove the mm-string-as-multibyte alias.
Lars Ingebrigtsen [Sun, 14 Feb 2016 07:21:56 +0000 (18:21 +1100)]
* lisp/gnus/mm-util.el: Remove the mm-string-as-multibyte alias.

10 years agoFix problem with wrong encoding of non-ASCII message bodies
Lars Ingebrigtsen [Sun, 14 Feb 2016 06:47:33 +0000 (17:47 +1100)]
Fix problem with wrong encoding of non-ASCII message bodies

* lisp/gnus/mml.el (mml-generate-mime-1): Disable
multibyteness before encoding the data.

10 years agoRemove codepage setup code from mm-util
Lars Ingebrigtsen [Sun, 14 Feb 2016 06:19:24 +0000 (17:19 +1100)]
Remove codepage setup code from mm-util

* lisp/gnus/mm-util.el (mm-codepage-setup): Remove.
(mm-codepage-iso-8859-list): Remove.
(mm-codepage-ibm-list, mm-setup-codepage-iso-8859)
(mm-setup-codepage-ibm): Remove.
(mm-charset-eval-alist): Remove the code pages from the
default value.

10 years agoRemove compat code for older Emacsen
Lars Ingebrigtsen [Sun, 14 Feb 2016 06:07:48 +0000 (17:07 +1100)]
Remove compat code for older Emacsen

* lisp/gnus/gnus-art.el (gnus-button-url-regexp): Remove
XEmacs compat code.

* lisp/gnus/gnus-sync.el (gnus-sync-json-alist-p): Remove
unused compat function.
(gnus-sync-json-plist-p): Ditto.

* lisp/gnus/message.el (message-default-charset): Make obsolete.
(message-info): Remove compat code.
(message-setup-fill-variables): Remove kludge needed earlier
to not overwrite `normal-auto-fill-function'.
(message-split-line): Remove compat code.

* lisp/gnus/mm-view.el (mm-display-inline-fontify): Remove
compat code.

10 years agoRemove some compat functions from gmm-utils.el
Lars Ingebrigtsen [Sun, 14 Feb 2016 05:35:24 +0000 (16:35 +1100)]
Remove some compat functions from gmm-utils.el

* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Remove
compat code.
(gmm-image-search-load-path): Remove.
(gmm-image-load-path-for-library): Remove.

10 years agoRemove the gmm-lazy and nnmail-lazy compat widgets
Lars Ingebrigtsen [Sun, 14 Feb 2016 05:29:53 +0000 (16:29 +1100)]
Remove the gmm-lazy and nnmail-lazy compat widgets

* lisp/gnus/gmm-utils.el (gmm-lazy): Remove.

* lisp/gnus/nnmail.el (nnmail-lazy): Remove.

10 years agoClean up nnimap-request-move-article slightly
Lars Ingebrigtsen [Sun, 14 Feb 2016 04:41:02 +0000 (15:41 +1100)]
Clean up nnimap-request-move-article slightly

* lisp/gnus/nnheader.el (subr-x): Require.

* lisp/gnus/nnimap.el (nnimap-request-move-article): Clean up
the code slightly.

10 years agoUse open-network-stream instead of open-protocol-stream
Lars Ingebrigtsen [Sun, 14 Feb 2016 04:08:40 +0000 (15:08 +1100)]
Use open-network-stream instead of open-protocol-stream

* lisp/gnus/nnimap.el: Use open-network-stream instead of
open-protocol-stream.

* lisp/gnus/nntp.el: Ditto.

* lisp/gnus/pop3.el: Ditto.

* lisp/gnus/sieve-manage.el: Ditto.

* lisp/net/network-stream.el (open-protocol-stream): Make obsolete.

10 years agoRemove compat code that relies on (featurep 'mule)
Lars Ingebrigtsen [Sun, 14 Feb 2016 04:02:59 +0000 (15:02 +1100)]
Remove compat code that relies on (featurep 'mule)

* lisp/gnus/gnus-group.el (gnus-group-name-decode): Remove
compat code.

* lisp/gnus/gnus-start.el (gnus-read-descriptions-file):
Remove compat code.

* lisp/gnus/mm-bodies.el (mm-decode-body, mm-decode-string):
Remove compat code.

* lisp/gnus/mm-view.el (mm-w3m-standalone-supports-m17n-p):
Remove compat code.
(mm-w3m-standalone-supports-m17n-p): Ditto.

10 years agoRemove compat functions from starttls.el
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:59:40 +0000 (14:59 +1100)]
Remove compat functions from starttls.el

* lisp/gnus/starttls.el
(starttls-set-process-query-on-exit-flag): Remove.

10 years agoRemove compat functions from smime.el
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:58:39 +0000 (14:58 +1100)]
Remove compat functions from smime.el

* lisp/gnus/smime.el (smime-replace-in-string): Remove.
(smime-make-temp-file): Remove.

10 years agoRemove compat code from smiley
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:56:21 +0000 (14:56 +1100)]
Remove compat code from smiley

* lisp/gnus/smiley.el (smiley-style): Remove compat code.

10 years agoRemove compat code from rfc2047
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:54:28 +0000 (14:54 +1100)]
Remove compat code from rfc2047

* lisp/gnus/rfc2047.el (rfc2047-encode-message-header): Remove
compat code.
(rfc2047-decode-string): Ditto.

10 years agoRemove compat function from pop3
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:50:53 +0000 (14:50 +1100)]
Remove compat function from pop3

* lisp/gnus/pop3.el (pop3-set-process-query-on-exit-flag): Remove.

10 years agoRemove compat code in Gnus backends
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:50:03 +0000 (14:50 +1100)]
Remove compat code in Gnus backends

* lisp/gnus/nndiary.el (nndiary-error): Remove.

* lisp/gnus/nndraft.el (nndraft-request-associate-buffer): Ditto.

* lisp/gnus/nnfolder.el (nnfolder-read-folder): Ditto.

* lisp/gnus/nnheader.el (nnheader-find-file-noselect): Ditto.

* lisp/gnus/nnimap.el (nnimap-log-buffer): Remove compat code.

10 years agoRemove compat code from some mml files
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:42:26 +0000 (14:42 +1100)]
Remove compat code from some mml files

* lisp/gnus/mml-sec.el (mml-secure-passphrase-cache-expiry):
Remove compat code.

* lisp/gnus/mml-smime.el (mml-smime-openssl-sign-query):
Always use `mail-extract-address-components', since this isn't
time critical.
(mml-smime-get-dns-cert): Ditto.

* lisp/gnus/mml.el (mml-preview): Remove compat code.

10 years agoRemove compat code and compat functions from mm-util.el
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:36:57 +0000 (14:36 +1100)]
Remove compat code and compat functions from mm-util.el

* lisp/gnus/mm-util.el (mm-mime-mule-charset-alist): Remove
compat code.
(mm-coding-system-priorities)
(mm-mule-charset-to-mime-charset, mm-charset-after)
(mm-mime-charset, mm-iso-8859-x-to-15-region): Remove compat code.
(mm-detect-coding-region): Define unconditionally.
(mm-detect-mime-charset-region): Ditto.
(mm-coding-system-to-mime-charset): It's 'mime-charset now.
(coding-system-name)
(find-file-coding-system-for-read-from-filename)
(find-operation-coding-system): Remove aliases.

10 years agoRemove some compat code from mm-*.el
Lars Ingebrigtsen [Sun, 14 Feb 2016 03:06:23 +0000 (14:06 +1100)]
Remove some compat code from mm-*.el

* lisp/gnus/mm-bodies.el (mm-decode-body): Ditto.

* lisp/gnus/mm-decode.el (mm-tmp-directory)
(mm-valid-image-format-p): Remove compat code.

* lisp/gnus/mm-url.el (mm-url-insert-file-contents): Remove
"Connection" "Close" workaround for older Emacsen.

10 years agoRemove compat code and functions from message.el
Lars Ingebrigtsen [Sun, 14 Feb 2016 02:57:55 +0000 (13:57 +1100)]
Remove compat code and functions from message.el

* lisp/gnus/message.el (message-send-mail-function): Remove
compat code.
(message-dont-reply-to-names, message-mode)
(message-setup-fill-variables, message-fill-paragraph)
(message-remove-blank-cited-lines, message-make-from)
(message-forward-rmail-make-body, message-tool-bar-gnome)
(message-tab): Remove compat code.
(message-completion-in-region): Remove.
(message-read-from-minibuffer): Remove compat code.

10 years agoDeclare rfc1843 instead of autoloading
Lars Ingebrigtsen [Sun, 14 Feb 2016 02:04:15 +0000 (13:04 +1100)]
Declare rfc1843 instead of autoloading

* lisp/gnus/gnus-art.el (rfc1843-decode-region): Declare
instead of autoload.

10 years agoBump version to 25.0.91
Nicolas Petton [Sat, 13 Feb 2016 19:30:37 +0000 (20:30 +0100)]
Bump version to 25.0.91

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump version to 25.0.91.

10 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Sat, 13 Feb 2016 19:30:18 +0000 (20:30 +0100)]
* etc/AUTHORS: Update the AUTHORS file

10 years ago; fix changelog entries
Nicolas Petton [Sat, 13 Feb 2016 19:28:54 +0000 (20:28 +0100)]
; fix changelog entries

10 years ago; make change-history-commit
Nicolas Petton [Sat, 13 Feb 2016 18:29:35 +0000 (19:29 +0100)]
; make change-history-commit

10 years ago* lisp/dired-aux.el: Require cl-lib. (Bug#22613)
Glenn Morris [Sat, 13 Feb 2016 18:18:17 +0000 (13:18 -0500)]
* lisp/dired-aux.el: Require cl-lib.  (Bug#22613)

10 years agoAvoid signaling an error in 'dired-do-find-regexp-and-replace'
Eli Zaretskii [Sat, 13 Feb 2016 18:11:13 +0000 (20:11 +0200)]
Avoid signaling an error in 'dired-do-find-regexp-and-replace'

* lisp/dired-aux.el: Require cl-lib, so that 'cl-mapcan' is
autoloaded correctly.  (Bug#22613)

10 years ago; Improve commentary in insdel.c
Eli Zaretskii [Sat, 13 Feb 2016 15:48:38 +0000 (17:48 +0200)]
; Improve commentary in insdel.c

* src/insdel.c (gap_left, gap_right, make_gap_larger)
(make_gap_smaller): Improve commentary.